<%@ page contentType="text/html; charset=UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html>
<html>
<head>
<title>查看POS终端状态</title>
<%@include file="Menu.jsp"%>
<!-- <script>
    function update(sysBlackVer,sysParaVer,sysWhiteVer,sysSoftVer,ableFlag,psamCardNo) {
        document.getElementById("sysBlackVer").value = sysBlackVer;
        document.getElementById("sysParaVer").value = sysParaVer;
        document.getElementById("sysWhiteVer").value = sysWhiteVer;
        document.getElementById("sysSoftVer").value = sysSoftVer;
        document.getElementById("ableFlag").value = ableFlag;
        document.getElementById("psamCardNo").value = psamCardNo;
        var form = document.getElementById("UpdateInit");
        form.submit();
        return true;
    }
</script> -->
</head>
<body>
    <h3>查询条件</h3>
    <s:form action="PosStatus" theme="xhtml">
        <s:select list="#{-1:'',0:'未连接',1:'连接' }" label="设备连接状态" key="conditionDto.equipmentSts" />
        <s:select list="#{-1:'',0:'下班',1:'上班' }" label="工作状态" key="conditionDto.workSts" />
        <s:textfield key="线路" name="conditionDto.lineNo" id="conditionDto.lineNo" maxlength="6" />
        <s:textfield key="PSAM卡" name="conditionDto.psamCardNo" id="conditionDto.psamCardNo" maxlength="12" />
        <s:textfield key="车辆编号" name="conditionDto.cardNo" id="conditionDto.cardNo" maxlength="10" />
        <s:textfield key="黑名单参数版本" name="conditionDto.sysBlackVer" id="conditionDto.sysBlackVer" maxlength="10" />
        <s:textfield key="城市白名单版本" name="conditionDto.sysWhiteVer" id="conditionDto.sysWhiteVer" maxlength="10" />
        <s:textfield key="卡参数版本号" name="conditionDto.sysParaVer" id="conditionDto.sysParaVer" maxlength="10" />
        <s:textfield key="程序版本号" name="conditionDto.sysSoftVer" id="conditionDto.sysSoftVer" maxlength="10" />
        <s:submit value="检索" />
        <table>
            <tr>
                <td>
                    <h3>查询结果</h3>
                </td>
            </tr>
            <tr>
                <td class="solid">线路号/集团编号</td>
                <td class="solid">车辆编号/商户编号</td>
                <td class="solid">车牌号/商户名</td>
                <td class="solid">POS机编号</td>
                <td class="solid">司机编号/操作员编号</td>
                <td class="solid">票价</td>
                <td class="solid">计价方式（单一票价/分段计价）</td>
                <td class="solid">SIM卡号</td>
                <td class="solid">PSAM卡号</td>
                <td class="solid">工作状态（上班/下班）</td>
                <td class="solid">未上传记录数</td>
                <td class="solid">最近更新时间</td>
                <td class="solid">服务器票卡参数版本号</td>
                <td class="solid">上次更新成功票卡参数版本号</td>
                <td class="solid">服务器黑名单参数版本号</td>
                <td class="solid">上次更新成功黑名单参数版本号</td>
                <td class="solid">服务器城市白名单参数版本号</td>
                <td class="solid">上次更新成功城市白名单参数版本号</td>
                <td class="solid">程序文件名</td>
                <td class="solid">服务器程序版本号</td>
                <td class="solid">上次更新成功程序版本号</td>
                <td class="solid">服务器补采版本号</td>
                <td class="solid">上次更新成功补采版本号</td>
                <td class="solid">GPS经度</td>
                <td class="solid">GPS纬度</td>
                <td class="solid">POS使用许可（该POS是否允许使用）</td>
            </tr>
            <s:iterator value="domainList" status="dto">
                <tr>
                    <td class="solid"><s:property value="lineNo" /></td>
                    <td class="solid"><s:property value="cardNo" /></td>
                    <td class="solid"><s:property value="userNo" /></td>
                    <td class="solid"><s:property value="posNo" /></td>
                    <td class="solid"><s:property value="opeNo" /></td>
                    <td class="solid"><s:property value="price" /></td>
                    <td class="solid"><s:property value="method" /></td>
                    <td class="solid"><s:property value="simCardNo" /></td>
                    <td class="solid"><s:property value="psamCardNo" /></td>
                    <td class="solid"><s:if test="workSts == 0">下班 </s:if> <s:elseif test="workSts == 1">上班</s:elseif></td>
                    <td class="solid"><s:property value="noSendNum" /></td>
                    <td class="solid"><s:property value="updateDate" /></td>
                    <td class="solid"><s:property value="sysParaVer" /></td>
                    <td class="solid"><s:property value="posParaVer" /></td>
                    <td class="solid"><s:property value="sysBlackVer" /></td>
                    <td class="solid"><s:property value="posBlackVer" /></td>
                    <td class="solid"><s:property value="sysWhiteVer" /></td>
                    <td class="solid"><s:property value="posWhiteVer" /></td>
                    <td class="solid"><s:property value="softFname" /></td>
                    <td class="solid"><s:property value="sysSoftVer" /></td>
                    <td class="solid"><s:property value="posSoftVer" /></td>
                    <td class="solid"><s:property value="sysCmdVer" /></td>
                    <td class="solid"><s:property value="posCmdVer" /></td>
                    <td class="solid"><s:property value="gpsLongitude" /></td>
                    <td class="solid"><s:property value="gpsLatitude" /></td>
                    <td class="solid"><s:if test="ableFlag == 0">允许</s:if> <s:elseif test="ableFlag == 1">不允许</s:elseif></td>
                </tr>
            </s:iterator>
        </table>
    </s:form>
    <s:form action="UpdateInit" namespace="/" onsubmit="return false;">
        <s:hidden name="conditionDto" id="conditionDto" />
        <s:hidden name="sysBlackVer" id="sysBlackVer" />
        <s:hidden name="sysParaVer" id="sysParaVer" />
        <s:hidden name="sysWhiteVer" id="sysWhiteVer" />
        <s:hidden name="sysSoftVer" id="sysSoftVer" />
        <s:hidden name="ableFlag" id="ableFlag" />
        <s:hidden name="psamCardNo" id="psamCardNo" />
    </s:form>
</body>
</html>
